package com.zy.dp.abstractfactory.example2;

public class ComputerEngineer
{

	private CPUApi cpu = null;
	private MainboardApi mainboard = null;

	public void makeComputer(AbstractFactory schema)

	{

		prepareHardwares(schema);

	}

	private void prepareHardwares(AbstractFactory schema)
	{

		this.cpu = schema.createCPU();
		this.mainboard = schema.createMainboard();

		this.cpu.calculate();
		this.mainboard.installCPU();

	}

}
